<?php


namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use phpDocumentor\Reflection\Types\Self_;

class Brokerage extends Model
{

    use HasFactory;

    protected $table = 'zfm_brokers';

    public static function brokerList()
    {
        return self::paginate(10);
    }

    public static function getOne($id){
        return self::where('id',$id)->where('is_del','0')->get()->toArral();
    }
}
